package lab1;

public class VisitorDemo {
	public static void main(String args[]) {
		ObjectStructure customers = new ObjectStructure();
		PersonalCustomer c1 = new PersonalCustomer();
		EnterpriseCustomer c2 = new EnterpriseCustomer();
		customers.add(c1);
		customers.add(c2);
		
		VisitorInterface v1 = new PredilectionAnalyzeVisitor();
		VisitorInterface v2 = new WorthAnalyzeVisitor();
		customers.accept(v1);
		customers.accept(v2);
		
	}
}
